package com.lee.blog.service;

import com.lee.blog.bean.Time;
import com.lee.blog.mapper.TimeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TimeService {

    @Autowired
    TimeMapper timeMapper;

    public List<Time> getTime(){
        return timeMapper.getTime();
    }
    public void doWriteTime(Time time){
        timeMapper.doWriteTime(time);
    }
    public int getUv(){
        return timeMapper.getUv();
    }

    public void setUv(int uv){
        timeMapper.setUv(uv);
    }

}
